/*
 * 开启loading效果 tip可为空
 */
//false为关，true为开
var lodingStatus = false;
function getAjaxLoading(tip){
	var mask = "<div class='mask'>";
	mask += "<div class='loading'>";
	mask += "<span></span>";
	mask += "<span></span>";
	mask += "<span></span>";
	mask += "<span></span>";
	mask += "<span></span>";
	mask += "<div class='loadingText'>"+tip+"</div>";
	mask += "</div>";
	mask += "</div>";
	$('body').prepend(mask);
	lodingStatus = true;
};
/**
 * 关闭loading效果
 */
function closeAjaxLoading(){
	$(".mask").remove();
	lodingStatus = false;
}
/**
 * 更改提示消息
 * @param tip
 */
function changeTip(tip){
	$(".loadingText").html(tip);
}
